package com.jshoperxms.entity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Objects;

/**
 * Created by sdywcd on 2019/12/12.
 * Des:
 */
@Entity
@Table(name = "order_ldgift_t", schema = "jshoperxms", catalog = "")
public class OrderLdgiftT {
    private String orderid;
    private String memberid;
    private String membername;
    private String orderstatus;
    private BigDecimal amount;
    private int gleafs;
    private BigInteger purchasetime;
    private String needinvoice;
    private BigInteger paytime;
    private String ordertag;
    private String tobuyernote;
    private BigDecimal shouldpay;
    private int needquantity;
    private String paystatus;
    private BigInteger createtime;
    private String tradenumber;
    private String basicuserid;
    private String basicusername;
    private String errorordertag;
    private int versiont;
    private String ordername;
    private BigInteger updatetime;
    private String status;
    private String wxopenid;
    private String tomemberid;
    private String towxopenid;

    @Id
    @Column(name = "ORDERID", nullable = false, length = 25)
    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    @Basic
    @Column(name = "MEMBERID", nullable = false, length = 25)
    public String getMemberid() {
        return memberid;
    }

    public void setMemberid(String memberid) {
        this.memberid = memberid;
    }

    @Basic
    @Column(name = "MEMBERNAME", nullable = false, length = 100)
    public String getMembername() {
        return membername;
    }

    public void setMembername(String membername) {
        this.membername = membername;
    }

    @Basic
    @Column(name = "ORDERSTATUS", nullable = false, length = 2)
    public String getOrderstatus() {
        return orderstatus;
    }

    public void setOrderstatus(String orderstatus) {
        this.orderstatus = orderstatus;
    }

    @Basic
    @Column(name = "AMOUNT", nullable = false, precision = 2)
    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    @Basic
    @Column(name = "GLEAFS", nullable = false)
    public int getGleafs() {
        return gleafs;
    }

    public void setGleafs(int gleafs) {
        this.gleafs = gleafs;
    }

    @Basic
    @Column(name = "PURCHASETIME", nullable = true)
    public BigInteger getPurchasetime() {
        return purchasetime;
    }

    public void setPurchasetime(BigInteger purchasetime) {
        this.purchasetime = purchasetime;
    }

    @Basic
    @Column(name = "NEEDINVOICE", nullable = false, length = 1)
    public String getNeedinvoice() {
        return needinvoice;
    }

    public void setNeedinvoice(String needinvoice) {
        this.needinvoice = needinvoice;
    }

    @Basic
    @Column(name = "PAYTIME", nullable = true)
    public BigInteger getPaytime() {
        return paytime;
    }

    public void setPaytime(BigInteger paytime) {
        this.paytime = paytime;
    }

    @Basic
    @Column(name = "ORDERTAG", nullable = false, length = 1)
    public String getOrdertag() {
        return ordertag;
    }

    public void setOrdertag(String ordertag) {
        this.ordertag = ordertag;
    }

    @Basic
    @Column(name = "TOBUYERNOTE", nullable = false, length = 500)
    public String getTobuyernote() {
        return tobuyernote;
    }

    public void setTobuyernote(String tobuyernote) {
        this.tobuyernote = tobuyernote;
    }

    @Basic
    @Column(name = "SHOULDPAY", nullable = false, precision = 2)
    public BigDecimal getShouldpay() {
        return shouldpay;
    }

    public void setShouldpay(BigDecimal shouldpay) {
        this.shouldpay = shouldpay;
    }

    @Basic
    @Column(name = "NEEDQUANTITY", nullable = false)
    public int getNeedquantity() {
        return needquantity;
    }

    public void setNeedquantity(int needquantity) {
        this.needquantity = needquantity;
    }

    @Basic
    @Column(name = "PAYSTATUS", nullable = false, length = 1)
    public String getPaystatus() {
        return paystatus;
    }

    public void setPaystatus(String paystatus) {
        this.paystatus = paystatus;
    }

    @Basic
    @Column(name = "CREATETIME", nullable = false)
    public BigInteger getCreatetime() {
        return createtime;
    }

    public void setCreatetime(BigInteger createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "TRADENUMBER", nullable = false, length = 45)
    public String getTradenumber() {
        return tradenumber;
    }

    public void setTradenumber(String tradenumber) {
        this.tradenumber = tradenumber;
    }

    @Basic
    @Column(name = "BASICUSERID", nullable = false, length = 25)
    public String getBasicuserid() {
        return basicuserid;
    }

    public void setBasicuserid(String basicuserid) {
        this.basicuserid = basicuserid;
    }

    @Basic
    @Column(name = "BASICUSERNAME", nullable = false, length = 100)
    public String getBasicusername() {
        return basicusername;
    }

    public void setBasicusername(String basicusername) {
        this.basicusername = basicusername;
    }

    @Basic
    @Column(name = "ERRORORDERTAG", nullable = false, length = 1)
    public String getErrorordertag() {
        return errorordertag;
    }

    public void setErrorordertag(String errorordertag) {
        this.errorordertag = errorordertag;
    }

    @Basic
    @Column(name = "VERSIONT", nullable = false)
    public int getVersiont() {
        return versiont;
    }

    public void setVersiont(int versiont) {
        this.versiont = versiont;
    }

    @Basic
    @Column(name = "ORDERNAME", nullable = false, length = 1000)
    public String getOrdername() {
        return ordername;
    }

    public void setOrdername(String ordername) {
        this.ordername = ordername;
    }

    @Basic
    @Column(name = "UPDATETIME", nullable = true)
    public BigInteger getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(BigInteger updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "STATUS", nullable = false, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        OrderLdgiftT that = (OrderLdgiftT) o;
        return gleafs == that.gleafs &&
                needquantity == that.needquantity &&
                versiont == that.versiont &&
                Objects.equals(orderid, that.orderid) &&
                Objects.equals(memberid, that.memberid) &&
                Objects.equals(membername, that.membername) &&
                Objects.equals(orderstatus, that.orderstatus) &&
                Objects.equals(amount, that.amount) &&
                Objects.equals(purchasetime, that.purchasetime) &&
                Objects.equals(needinvoice, that.needinvoice) &&
                Objects.equals(paytime, that.paytime) &&
                Objects.equals(ordertag, that.ordertag) &&
                Objects.equals(tobuyernote, that.tobuyernote) &&
                Objects.equals(shouldpay, that.shouldpay) &&
                Objects.equals(paystatus, that.paystatus) &&
                Objects.equals(createtime, that.createtime) &&
                Objects.equals(tradenumber, that.tradenumber) &&
                Objects.equals(basicuserid, that.basicuserid) &&
                Objects.equals(basicusername, that.basicusername) &&
                Objects.equals(errorordertag, that.errorordertag) &&
                Objects.equals(ordername, that.ordername) &&
                Objects.equals(updatetime, that.updatetime) &&
                Objects.equals(status, that.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(orderid, memberid, membername, orderstatus, amount, gleafs, purchasetime, needinvoice, paytime, ordertag, tobuyernote, shouldpay, needquantity, paystatus, createtime, tradenumber, basicuserid, basicusername, errorordertag, versiont, ordername, updatetime, status);
    }

    @Basic
    @Column(name = "WXOPENID", nullable = false, length = 45)
    public String getWxopenid() {
        return wxopenid;
    }

    public void setWxopenid(String wxopenid) {
        this.wxopenid = wxopenid;
    }

    @Basic
    @Column(name = "TOMEMBERID", nullable = false, length = 25)
    public String getTomemberid() {
        return tomemberid;
    }

    public void setTomemberid(String tomemberid) {
        this.tomemberid = tomemberid;
    }

    @Basic
    @Column(name = "TOWXOPENID", nullable = false, length = 45)
    public String getTowxopenid() {
        return towxopenid;
    }

    public void setTowxopenid(String towxopenid) {
        this.towxopenid = towxopenid;
    }
}
